package main

import "fmt"

func subtact(nums []int) {
	for v := range nums {
		nums[v] = nums[v] - 1
	}
}

func main() {
	num := []int{6, 7, 8}
	subtact(num)
	fmt.Println(num)
}
